package com.ylxl.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Auther Gilbert
 * @Date 2023/5/30 20:10
 */
@Data
@TableName("user")
public class User {
    @ApiModelProperty(value="用户id",required = false)
    @TableId(type = IdType.AUTO) //主键自增
    private Integer id;
    @ApiModelProperty(value="姓名",required = false)
    private String name;
    @ApiModelProperty(value="手机号",required = false)
    private String phone;
    @ApiModelProperty(value="用户名",required = false)
    private String userName;
    @ApiModelProperty(value="密码",required = false)
    private String password;
    @ApiModelProperty(value="邮箱",required = false)
    private String email;
    @ApiModelProperty(value="状态(0：启动 1:禁用)",required = false)
    private Integer status;
    @ApiModelProperty(value="创建时间",required = false)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @ApiModelProperty(value="创建人",required = false)
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @ApiModelProperty(value="更新人",required = false)
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;
    @ApiModelProperty(value="修改时间",required = false)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
